import Vue from 'vue'
import Router from 'vue-router'

import Layout from '@/layout/index'

import XTable1 from '@/view/xtable/xtable1'
import XTable2 from '@/view/xtable/xtable2'
import XTable3 from '@/view/xtable/xtable3'
import XTable4 from '@/view/xtable/xtable4'
import XTable5 from '@/view/xtable/xtable5'
import XTable6 from '@/view/xtable/xtable6'

import XForm1 from '@/view/xform/xform1'
import XForm2 from '@/view/xform/xform2'
import XForm3 from '@/view/xform/xform3'
import XForm4 from '@/view/xform/xform4'
import XForm5 from '@/view/xform/xform5'
import XForm6 from '@/view/xform/xform6'
import XForm7 from '@/view/xform/xform7'
import XForm8 from '@/view/xform/xform8'
import XForm9 from '@/view/xform/xform9'
import XForm10 from '@/view/xform/xform10'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Layout,
      redirect: '/home/XTable',
      children: [{
        path: '/home/XTable',
        component: () => import('@/view/xtable')
      }, {
        path: '/home/XForm',
        component: () => import('@/view/xform')
      }, {
        path: '/home/XTable1',
        component: XTable1
      }, {
        path: '/home/XTable2',
        component: XTable2
      }, {
        path: '/home/XTable3',
        component: XTable3
      }, {
        path: '/home/XTable4',
        component: XTable4
      }, {
        path: '/home/XTable5',
        component: XTable5
      }, {
        path: '/home/XTable6',
        component: XTable6
      }, {
        path: '/home/XForm1',
        component: XForm1
      }, {
        path: '/home/XForm2',
        component: XForm2
      }, {
        path: '/home/XForm3',
        component: XForm3
      }, {
        path: '/home/XForm4',
        component: XForm4
      }, {
        path: '/home/XForm5',
        component: XForm5
      }, {
        path: '/home/XForm6',
        component: XForm6
      }, {
        path: '/home/XForm7',
        component: XForm7
      }, {
        path: '/home/XForm8',
        component: XForm8
      }, {
        path: '/home/XForm9',
        component: XForm9
      }, {
        path: '/home/XForm10',
        component: XForm10
      }]
    },
    { path: '/xtable1', component: XTable1 },
    { path: '/xtable2', component: XTable2 },
    { path: '/xtable3', component: XTable3 },
    { path: '/xtable4', component: XTable4 },
    { path: '/xtable5', component: XTable5 },
    { path: '/xtable6', component: XTable6 },

    { path: '/xform1', component: XForm1 },
    { path: '/xform2', component: XForm2 },
    { path: '/xform3', component: XForm3 },
    { path: '/xform4', component: XForm4 },
    { path: '/xform5', component: XForm5 },
    { path: '/xform6', component: XForm6 },
    { path: '/xform7', component: XForm7 },
    { path: '/xform8', component: XForm8 },
    { path: '/xform9', component: XForm9 },
    { path: '/xform10', component: XForm10 }
  ]
})
